const http = require('../utils/http.js')

export const scoreMcList = () => { // 分页获取当前MC的打分项目列表
    return http._get(`/api/v2/mc/scoreMc`)
}
export const scoreMcItem = (scoreProjectId) => { // 根据打分项目id获取基本信息
    return http._get(`/api/v2/mc/scoreMc/info/${scoreProjectId}`)
}
export const promotionList = (scoreProjectId, data) => { // MC根据打分项目id获取晋级用户列表
    return http._get(`/api/v2/mc/scoreMc/promotion/${scoreProjectId}`, data)
}
export const gameList = (scoreProjectId, data) => { // MC根据打分项目获取对阵图
    return http._get(`/api/v2/mc/scoreMc/game/${scoreProjectId}`, data)
}
export const mcJudge = (data) => { // Mc加入
    return http._post(`/api/v2/mc/scoreMc/join`, data)
}
export const socketId = (scoreProjectId) => { // 根据打分项目id获取vj的socketId
    return http._get(`/api/v2/mc/scoreMc/socket/${scoreProjectId}`)
}
export const getLevel = (scoreProjectId) => { // 根据打分项目获取当前级别
    return http._get(`/api/v2/mc/scoreMc/level/${scoreProjectId}`)
}
export const setVjTime = (data) => { // 推送时间
    return http._post(`/api/v2/vj/scoreMc`, data)
}
